<%@ Page Language="VB" AutoEventWireup="false" CodeFile="FirstSample.aspx.vb" Inherits="FirstSample" %>

<%@ Register Assembly="Chapter10CustomControlsCS" Namespace="Chapter10CustomControlsCS"
    TagPrefix="cc2" %>

<%@ Register Assembly="Chapter10CustomControlsVB" Namespace="Chapter10CustomControlsVB"
    TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;
        <asp:Button ID="btnConnect" runat="server" Style="z-index: 100; left: 16px; position: absolute;
            top: 208px" Text="Connect Mode" />
        <asp:WebPartManager ID="WebPartManager1" runat="server">
          <StaticConnections>
             <asp:WebPartConnection ID="cn1" ProviderID="ProviderPart1" ConsumerID="ConsumerPart1" 
                 />
          </StaticConnections>
        </asp:WebPartManager>
    
    </div>
        <asp:WebPartZone ID="znConsumer" runat="server" HeaderText="ISBN Consumer"
            Style="z-index: 101; left: 9px; position: absolute; top: 93px">
            <ZoneTemplate>
                <cc1:ConsumerPart ID="ConsumerPart1" runat="server" />
            </ZoneTemplate>
        </asp:WebPartZone>
        <asp:WebPartZone ID="znProvider" runat="server" HeaderText="ISBN Provider" Style="z-index: 102;
            left: 259px; position: absolute; top: 94px">
            <ZoneTemplate>
                <cc1:ProviderPart ID="ProviderPart1" runat="server" BookIdentifier="ISBN Provider: 0130230731" />
            </ZoneTemplate>
        </asp:WebPartZone>
        <asp:ConnectionsZone ID="ConnectionsZone1" runat="server" Style="z-index: 103; left: 149px;
            position: absolute; top: 206px">
        </asp:ConnectionsZone>
        <asp:Button ID="Button1" runat="server" Style="z-index: 104; left: 16px; position: absolute;
            top: 248px" Text="Connect 2" />
        <asp:WebPartZone ID="SecondPartToConnect" runat="server" Style="z-index: 105; left: 587px;
            position: absolute; top: 95px">
            <ZoneTemplate>
                <cc1:ProviderPart ID="ProviderPart2" runat="server" />
            </ZoneTemplate>
        </asp:WebPartZone>
        &nbsp;
        <cc2:ProviderPart ID="Provider1" runat="server" />
        <asp:Button ID="btnTransform" runat="server" Style="z-index: 106; left: 16px; position: absolute;
            top: 288px" Text="Transform" />
        <asp:Button ID="btnTransient" runat="server" Style="z-index: 107; left: 16px; position: absolute;
            top: 328px" Text="Transient" />
        <asp:Button ID="btnBreak" runat="server" Style="z-index: 109; left: 16px; position: absolute;
            top: 368px" Text="Break" />
    </form>
</body>
</html>
